Checking param is present in phoenix controller function

This is perfect. Thanks very much for explaining that. I didn’t even consider the consequences of API error responses so thanks for giving me something to consider!