Whitespace
Explicitly return statement
Also check specifically for type boolean before returning error.html