fix syntax errors
abort request if called with nil/empty params