All control structures must contain their logic within braces.

Please check http://joomla.github.io/coding-standards/?coding-standards/chapters/php.md in it's section "Control Structures".

The code should look like:
```php
if($element!=null)
{
	return true;
}

return false;
```