EDIT: Ok I got it, it was a problem with "static", I was calling "classIsRelatedWith()" which is a static function using ClassName.static.function(), instead of reference.static.function().
I guess this topic can be closed then .o.