fixed hasRendered() function in portal class - when using the argument