Remove unnecessary preg_match
Proper indentation