Fixed method visibility, method_exists checks and comments removed