apply psr-2 rules.
add exists method.